<template>
	<view class="grid" :style="{'grid-template-columns': `repeat(${columns},1fr)`}">
		<view class="list" v-for="(item, index) in len" :key="index">列表</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				len: 14,
				columns: 3
			}
		}
	}
</script>

<style>
	.grid {
		display: grid;
		grid-gap: 10px;

		.list {
			border: 1px solid #ff6600;
			padding: 5px;
		}
	}
</style>
